package com.xbdun.facade.validatebmp.exceptions;

import com.xbdun.common.exceptions.BizException;

/**
* @ClassName: BmpBizException
* @Description: 项目异常错误统一对象
* @author zhanggt 360730440@qq.com
* @date 2017年3月21日 上午10:00:51
 */
public class ValidateBizException extends BizException {
	private static final long serialVersionUID = 1L;
	public ValidateBizException(int code, String msgFormat, Object... args) {
		super(code, msgFormat, args);
	}
	/**默认错误信息*/
	public static final ValidateBizException DEF_ERROR = new ValidateBizException(30010001, "操作错误");
	/**Redis不存在*/
	public static final ValidateBizException REDIS_VALI_FAIL = new ValidateBizException(30010002, "二维码内容验证失败");
	/**二维码信息不存在*/
	public static final ValidateBizException QR_NOT_EXIST = new ValidateBizException(30010003, "二维码信息不存");
	/**发送邮件失败*/
	public static final ValidateBizException EIMAL_SEND_FAIL = new ValidateBizException(30010004, "发送邮件失败");
	
	/**上传文件格式错误*/
	public static final ValidateBizException UPLOAD_FORMAT_ERROR = new ValidateBizException(30010005, "上传文件格式错误");
	/**上传文件大小超过限制*/
	public static final ValidateBizException UPLOAD_SIZE_ERROR = new ValidateBizException(30010006, "上传文件大小超过限制");
	/**上传文件大小超过限制*/
	public static final ValidateBizException UPLOAD_NULL_ERROR = new ValidateBizException(30010007, "上传文件为空");
	/**上传文件错误*/
	public static final ValidateBizException UPLOAD_ERROR = new ValidateBizException(30010008, "上传文件错误");
	/**允许上传文件类型或参数设置错误*/
	public static final ValidateBizException UPLOAD_ALLOW_TYPE_ERROR = new ValidateBizException(30010009, "允许上传文件类型或参数设置错误");
	/**删除文件失败错误*/
	public static final ValidateBizException UPLOAD_DELETE_ERROR = new ValidateBizException(30010010, "删除文件失败错误");
	/**生成二维码失败*/
	public static final ValidateBizException QR_GENRO_FAIL = new ValidateBizException(30010011, "生成二维码失败");
}